#include <stdio.h>

#define N_MAX 7000


int
main(void)
{
	int n, array[2][N_MAX], i = 0, tmp=0;
	register int k, l; /* premature optimization */
	char F = false;
	freopen("index.in", "rt", stdin);
	freopen("index.out", "w", stdout);

	scanf("%d", &n);
	while (i < n) {
		scanf("%d", &array[0][i]);
		array[1][i] = i;
		++i;
	}

	for (k = 0; k < n; ++k) {
		F = false;
		for (l = 1; l < n - k; ++l) {
			if (array[0][l] < array[0][l-1]) {
				tmp 		= array[0][l];
				array[0][l] 	= array[0][l-1];
				array[0][l-1] 	= tmp;

				tmp 		= array[1][l];
				array[1][l] 	= array[1][l-1];
				array[1][l-1] 	= tmp;

				F = true;
			}
		}
		if (!F)
			break;
	}
	for (k = 0 ; k < n ; ++k)
		printf("%d ", array[1][k]);
	putchar('\n');
	return 0;
}
